"""
桌面
"""
from Page.Launcher.LauncherIndexPage import LauncherIndexPage
from Page.Launcher.LauncherAppListPage import LauncherAppListPage

"""
音乐
"""
from Page.Music.MusicCategoryPage import MusicCategoryPage
from Page.Music.MusicCategoryDetailPage import MusicCategoryDetailPage
from Page.Music.MusicChoicePage import MusicChoicePage
from Page.Music.MusicIndexPage import MusicIndexPage
from Page.Music.MusicMyCollectionPage import MusicMyCollectionPage
from Page.Music.MusicPlayerPage import MusicPlayerPage
from Page.Music.MusicPlayHistoryPage import MusicPlayHistoryPage
from Page.Music.MusicSearchPage import MusicSearchPage

"""
想听
"""
from Page.Xting.XtingChoicePage import XtingChoicePage
from Page.Xting.XtingIndexPage import XtingIndexPage
from Page.Xting.XtingRankPage import XtingRankPage
from Page.Xting.XtingCategoryPage import XtingCategoryPage
from Page.Xting.XtingLocalRadioPage import XtingLocalRadioPage
from Page.Xting.XtingMyCollectionPage import XtingMyCollectionPage
from Page.Xting.XtingPlayHistoryPage import XtingPlayHistoryPage
from Page.Xting.XtingPlayerPage import XtingPlayerPage

"""
车应用
"""
from Page.App.AppIndexPage import AppIndexPage
from Page.App.AppManagerPage import AppManagerPage
from Page.App.AppDownloadListPage import AppDownloadListPage
from Page.App.AppDetailPage import AppDetailPage

"""
个人中心
"""
from Page.Personal.PersonalIndexPage import PersonalIndexPage
from Page.Personal.PersonalMyCoinPage import PersonalMyCoinPage
from Page.Personal.PersonalSettingPage import PersonalSettingPage
from Page.Personal.PersonalKeyPage import PersonalKeyPage
from Page.Personal.PersonalQRcodePage import PersonalQRcode
from Page.Personal.PersonalCarinfoPage import PersonalCarinfo
from Page.Personal.PersonalCarnumberPage import PersonalCarnumber
from Page.Personal.PersonalFeedbackPage import PersonalFeedback
from Page.Personal.PersonalTaskPage import PersonalTask
from Page.Personal.PersonaNewguidePage import PersonaNewguidePage

"""
奔腾商城
"""
from Page.Shop.ShopIndexPage import ShopIndexPage

"""
车服务
"""
from Page.Service.ServiceIndexPage import ServiceIndexPage
from Page.Service.ServiceReservationPage import ServiceReservationPage
from Page.Service.ServiceMaintenanceplanPage import ServiceMaintenanceplanPage
from Page.Service.ServiceNewoperatingPage import ServiceNewoperatingPage
from Page.Service.ServiceStoreselectPage import ServiceStoreselectPage
from Page.Service.ServiceCityPage import ServiceCityPage
from Page.Service.ServiceTimePage import ServiceTimePage
from Page.Service.ServiceCustomerHotlinePage import ServiceCustomerHotlinePage
from Page.Service.ServiceDrivingScorePage import ServiceDrivingScorePage
from Page.Service.ServiceHealthHousekeeperPage import ServiceHealthHousekeeperPage
from Page.Service.ServiceMyReservationPage import ServiceMyReservationPage
from Page.Service.ServicePhonePage import ServicePhonePage

"""
智能家居
"""
from Page.SmartHome.SmartHomeIndexPage import SmartHomeIndexPage
from Page.SmartHome.SmartHomeXiaobaiLoginPage import SmartHomeXiaobaiLoginPage
from Page.SmartHome.SmartHomeYunmiLoginPage import SmartHomeYunmiLoginPage
from Page.SmartHome.SmartHomeXiaomiLoginPage import SmartHomeXiaomiLoginPage

"""
多媒体
"""
from Page.Xkan.XkanIndexPage import XkanIndexPage

"""
yomi训练
"""
from Page.Yomi.YomiIndexPage import YomiIndexPage
from Page.Yomi.YomiCarControlPage import YomiCarControlPage
from Page.Yomi.YomiCarWindowPage import YomiCarWindowPage
from Page.Yomi.YomiDeleteToastPage import YomiDeleteToastPage
from Page.Yomi.YomiDetailsPage import YomiDetailsPage
from Page.Yomi.YomiNavigationPage import YomiNavigationPage
from Page.Yomi.YomiNewPage import YomiNewPage
from Page.Yomi.YomiOnlineRadioPage import YomiOnlineRadioPage
from Page.Yomi.YomiQuitToastPage import YomiQuitToastPage
from Page.Yomi.YomiRadioPage import YomiRadioPage
from Page.Yomi.YomiSkillPage import YomiSkillPage
from Page.Yomi.YomiSkillListPage import YomiSkillListPage
from Page.Yomi.YomiTemperaturePage import YomiTemperaturePage
from Page.Yomi.YomiWeatherPage import YomiWeatherPage
from Page.Yomi.YomiPassagePage import YomiPassagePage
from Page.Yomi.YomiMusicPage import YomiMusicPage
from Page.Yomi.YomiVolumePage import YomiVolumePage
from Page.Yomi.YomiDeletePage import YomiDeletePage


class CommonPage:
    """
    公共页面, 用于返回所有页面的对象, 让所有测试用例都从这个类获取页面对象
    """

    def __init__(self, driver):
        self.driver = driver

    def get_launcher_index_page(self):
        """
        获取-桌面-首页

        :return:
        """
        return LauncherIndexPage(self.driver)

    def get_launcher_app_list_page(self):
        """
        获取-桌面-列表页

        :return:
        """
        return LauncherAppListPage(self.driver)

    def get_music_category_page(self):
        """
        获取-音乐-分类页

        :return:
        """
        return MusicCategoryPage(self.driver)

    def get_music_category_detail_page(self):
        """
        获取-音乐-分类详情页

        :return:
        """
        return MusicCategoryDetailPage(self.driver)

    def get_music_choice_page(self):
        """
        获取-音乐-偏好选择页

        :return:
        """
        return MusicChoicePage(self.driver)

    def get_music_index_page(self):
        """
        获取-音乐-首页

        :return:
        """
        return MusicIndexPage(self.driver)

    def get_music_my_collection_page(self):
        """
        获取-音乐-收藏页

        :return:
        """
        return MusicMyCollectionPage(self.driver)

    def get_music_player_page(self):
        """
        获取-音乐-播放器页

        :return:
        """
        return MusicPlayerPage(self.driver)

    def get_music_play_history_page(self):
        """
        获取-音乐-播放历史页

        :return:
        """

        return MusicPlayHistoryPage(self.driver)

    def get_music_search_page(self):
        """
        获取-音乐-搜索页

        :return:
        """
        return MusicSearchPage(self.driver)

    def get_xting_choice_page(self):
        """
        获取-想听-偏好选择页

        :return:
        """
        return XtingChoicePage(self.driver)

    def get_xting_index_page(self):
        """
        获取-想听-首页

        :return:
        """
        return XtingIndexPage(self.driver)

    def get_xting_rank_page(self):
        """
        获取-想听-排行榜页

        :return:
        """
        return XtingRankPage(self.driver)

    def get_xting_category_page(self):
        """
        获取-想听-分类页

        :return:
        """
        return XtingCategoryPage(self.driver)

    def get_xting_local_radio_page(self):
        """
        获取-想听-本地电台页

        :return:
        """
        return XtingLocalRadioPage(self.driver)

    def get_xting_my_collection_page(self):
        """
        获取-想听-我的收藏页

        :return:
        """
        return XtingMyCollectionPage(self.driver)

    def get_xting_play_history_page(self):
        """
        获取-想听-播放历史页

        :return:
        """
        return XtingPlayHistoryPage(self.driver)

    def get_xting_player_page(self):
        """
        获取-想听-播放器页面

        :return:
        """
        return XtingPlayerPage(self.driver)

    def get_app_index_page(self):
        """
        获取-车应用-首页(应用管理页)

        :return:
        """
        return AppIndexPage(self.driver)

    def get_app_manager_page(self):
        """
        获取-车应用-管理页

        :return:
        """
        return AppManagerPage(self.driver)

    def get_app_download_list_page(self):
        """
        获取-车应用-下载列表页

        :return:
        """
        return AppDownloadListPage(self.driver)

    def get_app_detail_page(self):
        """
        获取-车应用-详情页

        :return:
        """
        return AppDetailPage(self.driver)

    def get_personal_index_page(self):
        """
        获取-个人中心-首页

        :return:
        """
        return PersonalIndexPage(self.driver)

    def get_personal_my_coin_page(self):
        """
        获取-个人中心-我的积分页

        :return:
        """
        return PersonalMyCoinPage(self.driver)

    def get_personal_setting_page(self):
        """
        获取-个人中心-设置页

        :return:
        """
        return PersonalSettingPage(self.driver)

    def get_personal_key_page(self):
        """
        获取-个人中心-钥匙页

        :return:
        """
        return PersonalKeyPage(self.driver)

    def get_personal_qrcode_page(self):
        """
        获取-个人中心-二维码页面

        :return:
        """
        return PersonalQRcode(self.driver)

    def get_personal_carinfo_page(self):
        """
        获取-个人中心-车辆信息页面

        :return:
        """
        return PersonalCarinfo(self.driver)

    def get_personal_carnumber_page(self):
        """
        获取-个人中心-车牌号页面

        :return:
        """
        return PersonalCarnumber(self.driver)

    def get_personal_feedback_page(self):
        """
        获取-个人中心-反馈中心页面

        :return:
        """
        return PersonalFeedback(self.driver)

    def get_personal_task_page(self):
        """
        获取-个人中心-任务中心

        :return:
        """
        return PersonalTask(self.driver)

    def get_personal_new_guide_page(self):
        """
        获取-个人中心-新手引导

        :return:
        """
        return PersonaNewguidePage(self.driver)

    def get_shop_index_page(self):
        """
        获取-商城-首页

        :return:
        """
        return ShopIndexPage(self.driver)

    def get_service_index_page(self):
        """
        获取-车服务-首页

        :return:
        """
        return ServiceIndexPage(self.driver)

    def get_service_reservation_page(self):
        """
        获取预约订单界面

        :return:
        """
        return ServiceReservationPage(self.driver)

    def get_service_maintenance_page(self):
        """
        获取-车服务-养车计划页面

        :return:
        """
        return ServiceMaintenanceplanPage(self.driver)

    def get_service_new_operating_page(self):
        """
        获取-车服务-新手引导页面

        :return:
        """
        return ServiceNewoperatingPage(self.driver)

    def get_service_store_select_page(self):
        """
        获取-车服务-新手引导页面

        :return:
        """
        return ServiceStoreselectPage(self.driver)

    def get_service_city_page(self):
        """
        获取-车服务-城市列表页面

        :return:
        """
        return ServiceCityPage(self.driver)

    def get_service_time_page(self):
        """
        获取-车服务-时间页面

        :return:
        """
        return ServiceTimePage(self.driver)

    def get_service_customer_hotline_page(self):
        """
        获取-车服务-客服热线页面

        :return:
        """
        return ServiceCustomerHotlinePage(self.driver)

    def get_service_driving_score_page(self):
        """
        获取-车服务-驾驶评分页面

        :return:
        """
        return ServiceDrivingScorePage(self.driver)

    def get_service_health_house_keeper_page(self):
        """
        获取-车服务-健康管家页面

        :return:
        """
        return ServiceHealthHousekeeperPage(self.driver)

    def get_service_my_reservation_page(self):
        """
        获取-车服务-我的预约页面

        :return:
        """
        return ServiceMyReservationPage(self.driver)

    def get_service_phone_page(self):
        """
        获取-车服务-电话页面

        :return:
        """
        return ServicePhonePage(self.driver)

    def get_smarthome_index_page(self):
        """
        获取-智能家居-首页

        :return:
        """
        return SmartHomeIndexPage(self.driver)

    def get_smarthome_xiaobai_login_page(self):
        """
        获取-智能家居- 小白登录页

        :return:
        """
        return SmartHomeXiaobaiLoginPage(self.driver)

    def get_smarthome_yunmi_login_page(self):
        """
        获取-智能家居-云米登录页

        :return:
        """
        return SmartHomeYunmiLoginPage(self.driver)

    def get_smarthome_xiaomi_login_page(self):
        """
        获取-智能家居-云米登录页

        :return:
        """
        return SmartHomeXiaomiLoginPage(self.driver)

    def get_xkan_index_page(self):
        """
        获取-多媒体-首页

        :return:
        """
        return XkanIndexPage(self.driver)

    def get_yomi_index_page(self):
        """
        获取-yomi训练-首页

        :return:
        """
        return YomiIndexPage(self.driver)

    def get_yomi_car_control_page(self):
        """
        获取-yomi训练-车控页

        :return:
        """
        return YomiCarControlPage(self.driver)

    def get_yomi_car_window_page(self):
        """
        获取-yomi训练-车窗页

        :return:
        """
        return YomiCarWindowPage(self.driver)

    def get_yomi_delete_toast_page(self):
        """
        获取-yomi训练-删除弹窗页

        :return:
        """
        return YomiDeleteToastPage(self.driver)

    def get_yomi_details_page(self):
        """
        获取-yomi训练-详情页

        :return:
        """
        return YomiDetailsPage(self.driver)

    def get_yomi_navigation_page(self):
        """
        获取-yomi训练-导航页

        :return:
        """
        return YomiNavigationPage(self.driver)

    def get_yomi_new_page(self):
        """
        获取-yomi训练-新闻页

        :return:
        """
        return YomiNewPage(self.driver)

    def get_yomi_online_radio_page(self):
        """
        获取-yomi训练-在线电台页

        :return:
        """
        return YomiOnlineRadioPage(self.driver)

    def get_yomi_quit_toast_page(self):
        """
        获取-yomi训练-退出确认页

        :return:
        """
        return YomiQuitToastPage(self.driver)

    def get_yomi_radio_page(self):
        """
        获取-yomi训练-电台页

        :return:
        """
        return YomiRadioPage(self.driver)

    def get_yomi_skill_page(self):
        """
        获取-yomi训练-技能页

        :return:
        """
        return YomiSkillPage(self.driver)

    def get_yomi_skill_list_page(self):
        """
        获取-yomi训练-技能列表页

        :return:
        """
        return YomiSkillListPage(self.driver)

    def get_yomi_temperature_page(self):
        """
        获取-yomi训练-温度页

        :return:
        """
        return YomiTemperaturePage(self.driver)

    def get_yomi_weather_page(self):
        """
        获取-yomi训练-天气页

        :return:
        """
        return YomiWeatherPage(self.driver)

    def get_yomi_passage_page(self):
        """
        获取-yomi训练-一段话页

        :return:
        """
        return YomiPassagePage(self.driver)

    def get_yomi_music_page(self):
        """
        获取-yomi训练-音乐页

        :return:
        """
        return YomiMusicPage(self.driver)

    def get_yomi_volume_page(self):
        """
        获取-yomi训练-音量页

        :return:
        """
        return YomiVolumePage(self.driver)

    def get_yomi_delete_page(self):
        """
        获取-yomi训练-删除页

        :return:
        """
        return YomiDeletePage(self.driver)
